#define _CRT_SECURE_NO_WARNINGS
#include "string.hpp"
//#include <string>

void test1()
{
	using namespace std;
	std::string s1;
	std::cout << s1.size() << std::endl;
	std::cout << s1.capacity() << std::endl;
}

void test2()
{
	//using namespace wyd;
	//string s1;
	wyd::string s2("hello world!");
	std::cout << s2 << std::endl;
	//std::cout << s2.c_str() << std::endl;
}

void test3()
{
	using namespace wyd;
	string s1;
	std::cin >> s1;
	std::cout << s1 << std::endl;

	string s2(s1);
	std::cout << s2 << std::endl;

	std::cout << s1.size() << std::endl;

	s1.resize(s1.size() / 2);
	std::cout << s1 << std::endl;

	for (auto ch : s2)
	{
		std::cout << ch;
	}
	std::cout << std::endl;

}

void test4()
{
	using namespace wyd;
	string s1;
	std::cout << s1 << std::endl;

	s1.insert(0, '1');
	std::cout << s1 << std::endl;
	s1.insert(1, '2');
	std::cout << s1 << std::endl;
	s1.insert(2, '3');
	std::cout << s1 << std::endl;
	s1.insert(3, '4');
	std::cout << s1 << std::endl;
	s1.erase(2);
	std::cout << s1 << std::endl;

}

void test5()
{
	using namespace wyd;
	string s1("1234");
	string s2("1235");

	std::cout << (s1 < s2) << std::endl;
	std::cout << (s1 <= s2) << std::endl;
	std::cout << (s1 == s2) << std::endl;
	std::cout << (s1 >= s2) << std::endl;
	std::cout << (s1 > s2) << std::endl;
	std::cout << (s1 != s2) << std::endl;

}

int main()
{
	test5();

	return 0;
}
